package com.marvels.financial.loan.dao;

import com.github.pagehelper.Page;
import com.marvels.financial.loan.dto.McfeReconciliyBatchBaseDTO;
import com.marvels.financial.loan.dto.ReconcilyBatchDataDTO;
import com.marvels.financial.loan.dto.ReconcilyConditionDTO;
import org.apache.ibatis.annotations.Param;

public interface McfeReconciliyBatchBaseDao {
    int deleteByPrimaryKey(Integer id);

    int insert(McfeReconciliyBatchBaseDTO record);

    int insertSelective(McfeReconciliyBatchBaseDTO record);

    McfeReconciliyBatchBaseDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(McfeReconciliyBatchBaseDTO record);

    int updateByPrimaryKey(McfeReconciliyBatchBaseDTO record);

    /**
     * 查询对账批次列表数据
     * @param dto
     * @return
     */
    public Page<ReconcilyBatchDataDTO>  selectReconciliyBatchBaseInfo(ReconcilyConditionDTO dto);
    
    
    /**
     * 查询对账批次列表统计数据
     * @param dto
     * @return
     */
    public ReconcilyBatchDataDTO  selectReconciliyBatchstatistics(ReconcilyConditionDTO dto);
    
    
    /**
     * 根据batchId更新数据
     * @param dto
     * @return
     */
    public int updateByBatchId(McfeReconciliyBatchBaseDTO dto);
    
    
    
    /**
     * 根据批次号更新为失效状态
     * @param batchId
     * @return
     */
    public int updateFlagByBatchId(@Param(value="batchId") String batchId);
    
}